<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('index')}">列表</a></li>
        <li class="active"><a href="{:url('edit',array('uuid'=>$detail['uuid']))}">修改</a></li>
    </ul>
    <form action="{:url('edit',array('uuid'=>$detail['uuid']))}" method="post"
          class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="20%">管理员<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="user_id" id="user_id" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <volist name="detail['getUserListInfo']" id="vo">
                                    <option value="{$vo.id}" <eq name="detail['user_id']" value="$vo['id']">selected</eq> >{$vo.user_nickname}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">名称<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="company_title" id="company_title" required
                                   value="{$detail.company_title}" placeholder="请填写名称"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">手机号<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="number" name="company_tel" id="company_tel" required
                                   value="{$detail.company_tel}" placeholder="请填写手机号"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">地址<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="address" id="address" required
                                   value="{$detail.address}" placeholder="请填写地址"/>
                        </td>
                    </tr>

                    <if condition="$Think.session.admin_is_operate eq 1">
                        <tr>
                            <th width="20%">状态<span class="form-required">&nbsp;*&nbsp;</span></th>
                            <td>
                                <select class="form-control valid" name="status" id="status" aria-invalid="false" required>
                                    <option value="">-请选择-</option>
                                    <foreach name="detail['companyStatusArr']" item="val" key="k">
                                        <option value="{$k}"  <eq name="detail['status']" value="$k">selected</eq> >{$val}</option>
                                    </foreach>
                                </select>
                            </td>
                        </tr>
                    </if>

                    <tr>
                        <th width="20%">备注信息<span class="form-required"></span></th>
                        <td>
                            <textarea class="form-control" name="company_desc" id="project_desc" placeholder="请填写备注信息" style="width:100%;height:200px;resize:none;">{$detail.company_desc}</textarea>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('EDIT')}</button>
                        <a class="btn btn-default" href="{:url('index')}">{:lang('BACK')}</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>